# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-tie-cphash
pkgver=2.000
pkgrel=9
pkgdesc="Perl/CPAN Module Tie::CPHash : Case preserving but case insensitive hash"
arch=("any")
url="https://search.cpan.org/dist/Tie-CPHash"
license=("GPL" "PerlArtistic")
depends=('perl')
source=("https://www.cpan.org/authors/id/C/CJ/CJM/Tie-CPHash-$pkgver.tar.gz")
sha256sums=('001eef7574f2c4057a193e95889903d5aedd412baea142003fa78707df6defdc')

build() {
  cd "$srcdir"/Tie-CPHash-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Tie-CPHash-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
